package com.lovestudying.entity;

import java.util.List;

/**
 * 订单实体类
 * 
 * @author OldDeer
 *
 */
public class Order {
	/**
	 * 订单uuid
	 */
	private String order_id;
	/**
	 * 所属账号
	 */
	private Account account;
	/**
	 * 花费
	 */
	private Double order_cost;
	/**
	 * 状态
	 */
	private Integer order_state;
	/**
	 * 创建时间
	 */
	private String order_create_date;
	/**
	 * 一次订单中包含的课程
	 */
	private List<Course> course_List;

	public Order() {
		super();
	}

	public Order(String order_id, Account account, Double order_cost, Integer order_state, String order_create_date,
			List<Course> course_List) {
		super();
		this.order_id = order_id;
		this.account = account;
		this.order_cost = order_cost;
		this.order_state = order_state;
		this.order_create_date = order_create_date;
		this.course_List = course_List;
	}

	public String getOrder_id() {
		return order_id;
	}

	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}

	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	public Double getOrder_cost() {
		return order_cost;
	}

	public void setOrder_cost(Double order_cost) {
		this.order_cost = order_cost;
	}

	public Integer getOrder_state() {
		return order_state;
	}

	public void setOrder_state(Integer order_state) {
		this.order_state = order_state;
	}

	public String getOrder_create_date() {
		return order_create_date;
	}

	public void setOrder_create_date(String order_create_date) {
		this.order_create_date = order_create_date;
	}

	@Override
	public String toString() {
		return "Order [order_id=" + order_id + ", account=" + account + ", order_cost=" + order_cost + ", order_state="
				+ order_state + ", order_create_date=" + order_create_date + ", course_List=" + course_List + "]";
	}

	public List<Course> getCourse_List() {
		return course_List;
	}

	public void setCourse_List(List<Course> course_List) {
		this.course_List = course_List;
	}

}
